﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AllNationPopup.Master" AutoEventWireup="true" CodeBehind="PhotoManager.aspx.cs" Inherits="AllNations.UI.PhotoManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
    <script language="javascript">
        //This code is used to provide a reference to the radwindow "wrapper"
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
            return oWindow;
        }

        function CloseOnReload() {
            GetRadWindow().Close();
        }

        function RefreshParentPage(bGet) {
            if (bGet) {
                var loc = GetRadWindow().BrowserWindow.location;
                GetRadWindow().BrowserWindow.location = loc;
            }
            else
                GetRadWindow().BrowserWindow.location.reload();
        }
    </script>
    <style type="text/css">
        .node .item-list li, .node ul li, .node ol li { list-style-type: none !important; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ANBodyContent" runat="server">
    <div id="popup-container">
        <article class="node static-page content popup-page" id="node-appearances" style="width: 95%">
            <telerik:RadMultiPage ID="ManagerViews" runat="server" RenderSelectedPageOnly="true">
                <telerik:RadPageView ID="CreateAlbumView" runat="server">
                    <div class="columns">
                        <div class="column grid_4 first last">
                            <h2>Create new photo album</h2>
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em;">Album Title:</td>
                                    <td style="padding: 4px;"><asp:TextBox ID="txtAlbumTitle" runat="server" Width="300px" CssClass="FieldR2" ValidationGroup="vgCreateAlbum" />
                                        <asp:RequiredFieldValidator ID="rfvAlbumTitle" runat="server" ValidationGroup="vgCreateAlbum" ControlToValidate="txtAlbumTitle" ErrorMessage="*Required" Display="Dynamic" Font-Size="0.85em" /></td>
                                </tr>
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em;">Description:</td>
                                    <td style="padding: 4px;"><asp:TextBox ID="txtAlbumDesc" runat="server" Width="300px" CssClass="FieldR2" TextMode="MultiLine" Rows="3" ValidationGroup="vgCreateAlbum" /></td>
                                </tr>
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em; white-space: nowrap;">Select Photo:</td>
                                    <td style="padding: 4px;"><telerik:RadAsyncUpload ID="raduploadAlbumPhoto" runat="server" MultipleFileSelection="Automatic" /></td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td style="padding: 4px;"><asp:Button ID="btCreateAlbum" runat="server" Text="Create album" ValidationGroup="vgCreateAlbum" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="AddPhotoToAlbumView" runat="server">
                    <div class="columns">
                        <div class="column grid_4 first last">
                            <h2>Add photo</h2>
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em; white-space: nowrap;">Select Photo:</td>
                                    <td style="padding: 4px;">
                                        <telerik:RadAsyncUpload ID="raduploadAlbumPhotoAdd" runat="server" MultipleFileSelection="Automatic" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td style="padding: 4px;"><asp:Button ID="btAddPhotoToAlbum" runat="server" Text="Add photo(s)" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="EditPhotoDetailView" runat="server">
                    <div style="padding: 10px;">
                        <table cellpadding="4" cellspacing="0" border="0">
                            <tr>
                                <td style="vertical-align: top; padding-top: 7px;"><strong>Photo:</strong></td>
                                <td><asp:Image ID="imgSelectedPhoto" runat="server"/></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top; padding-top: 7px;"><strong>Photo Title:</strong></td>
                                <td><asp:TextBox ID="txtPhotoTitle" runat="server" CssClass="FieldR2" Columns="60" MaxLength="100" /></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top; padding-top: 7px;"><strong>Description:</strong></td>
                                <td><asp:TextBox ID="txtPhotoDesc" runat="server" CssClass="MultiLineFieldR2" Columns="60" TextMode="MultiLine" Rows="5" Width="98%" /></td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td><asp:Button ID="btSavePhotoDetail" runat="server" Text="Save" /></td>
                            </tr>
                        </table>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="AlbumPropertiesView" runat="server">
                    <div class="columns">
                        <div class="column grid_4 first last">
                            <h2>Album properties</h2>
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em;">Album Title:</td>
                                    <td style="padding: 4px;"><asp:TextBox ID="txtAlbumTitleUpd" runat="server" CssClass="FieldR2" Columns="60" MaxLength="100" Text='<%# Eval("TitleTxt") %>' /></td>
                                </tr>
                                <tr>
                                    <td style="padding: 4px; font-family: Arial, Helvetica, Sans-Serif; font-size: 0.85em;">Description:</td>
                                    <td style="padding: 4px;"><asp:TextBox ID="txtAlbumDescUpd" runat="server" CssClass="FieldR2" Width="385" TextMode="MultiLine" Rows="5" Text='<%# Eval("DescTxt") %>' /></td>
                                </tr>
                                <tr>
                                    <td style="padding: 4px;">&nbsp;</td>
                                    <td style="padding: 4px;"><asp:CheckBox ID="cbArchiveInd" runat="server" Text="Archive?" style="font-size: 0.85em" /></td>
                                </tr>
                                <tr>
                                    <td style="padding: 4px;">&nbsp;</td>
                                    <td style="padding: 4px;"><asp:Button ID="btSaveAlbumDetail" runat="server" Text="Save" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </article>
    </div>
</asp:Content>
